Could not connect to SAFE Network

@bochaco Previously I am using Peruse Browser and localhost to test my webpages. Can the Beaker browser that you suggest can also run with localhost? I’ve tried to open and its fine when loading HTML/CSS file. However, when I start to use SAFE API like window.safeApp.initialise(appInfo) it shows me this error:
TypeError: Cannot read property 'initialise' of undefined
Why is this happen?