I currently have virtualbox set up to run a LAMP web server on Ubuntu 9.04 as the guest OS. The webserver root shares a folder (through VB's shared folder feature) with the host (Windows XP) so that all changes are instant and do not require a file transfer. The problem is that in javascript files, revisions are showing up weirdly in browsers. The initial load is fine, however any revisions will either truncate the original by the number of characters removed, or append random text (either other snippets of code elsewhere in the program, HTTP headers, or unrecognised characters) to the bottom of the file. For instance, in the IDE after a change is this:

While in firefox it is this (looks like some jquery code on the end):

Using FTP to transfer the files into the Guest OS works fine, however not shared folders. Also this problem is consistent, as I have tested with different browsers (firefox and chrome) and editors (phped, dreamweaver, notepad). Any suggestions as to how to rid myself of this problem?